home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
lib
/
mntlib44.zoo
/
mntlib
/
rmdir.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-06
|
364b
|
24 lines
/* rmdir -- remove a directory */
/* written by Eric R. Smith and placed in the public domain */
#include <limits.h>
#include <osbind.h>
#include <errno.h>
#include <unistd.h>
#include "lib.h"
int rmdir(_path)
const char *_path;
{
char path[PATH_MAX];
int r;
_unx2dos(_path, path);
r = Ddelete(path);
if (r < 0) {
errno = -r;
r = -1;
}
return r;
}